#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    //适应高分辨率应当在QApplication构造前完成
    //针对高DPI缩放策略的调整
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling,true);
    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps,true);
    QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}
